﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Project.MVC.Model;
using Project.MVC.Service;
using Project.Mvc.Web.Controllers;
using Project.MVC.PhanQuyen.Services;
namespace Project.MVC.Web.Controllers
{
    //[HandleError]
    //public class HomeController : ApplicationController
    [HandleError]
    public class HomeController : ApplicationBaseController
    {
        #region Services
        private readonly IContactServices serviceContact;

        public HomeController()
            : this(new ContactServices()
            )
        {
        }

        public HomeController(IContactServices iServiceContact

            )
        {
            serviceContact = iServiceContact;

        }
        #endregion
          [WSAuthorize(Roles = "DuAn")]
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View("Index");
        }

        public ActionResult About()
        {
            return View();
        }

        
    }
}
